<?php

/**
 * Created by 链行天下.
 * User: tangjianing(990921093@qq.com)
 * Date: 2019/1/3 17:37
 */
namespace Framework;

class Build
{
    public static $relation = [];

    public static function run()
    {
        self::autoload();
        self::register();
    }

    public static function bind($interface, $object)
    {
        return self::$relation[$interface]=$object;
    }



    public static function register()
    {
        self::bind(PostInterface::class, PostService::class);
    }
}